#!/bin/bash
# IBM_PROLOG_BEGIN_TAG 
# This is an automatically generated prolog. 
#  
#  
#  
# IBM CONFIDENTIAL 
#  
# OBJECT CODE ONLY SOURCE MATERIALS 
#  
# (C) COPYRIGHT International Business Machines Corp. 2003 
# All Rights Reserved 
#  
# The source code for this program is not published or otherwise 
# divested of its trade secrets, irrespective of what has been 
# deposited with the U.S. Copyright Office. 
#  
# IBM_PROLOG_END_TAG 

# Start the bpa_logger 
ulimit -c 1000000

export LD_LIBRARY_PATH=/usr/lib:/opt/hsc/lib:$LD_LIBRARY_PATH

if [ -f /var/hsc/log/.DEBUG_HSC ]; then
   /opt/hsc/bin/bpa_logger > /var/hsc/log/bpa_logger.stdout 2>&1 &
else
   /opt/hsc/bin/bpa_logger &
fi
BPA_LOGGER_PID=$!

# Record the bpa_logger's process id
sleep 2
echo $BPA_LOGGER_PID > /var/hsc/bpa_logger_pid

wait $BPA_LOGGER_PID
echo "bpa_logger stopped "`date` >> /var/hsc/log/bpa_logger.stdout
